package com.backend.modules.task.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.Future;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;
import java.util.List;
import org.springframework.format.annotation.DateTimeFormat;

@Data
@Schema(description = "任务参数")
public class TaskDTO {
    
    @Schema(description = "任务名称")
    @NotBlank(message = "任务名称不能为空")
    private String name;
    
    @Schema(description = "任务描述")
    private String description;
    
    @Schema(description = "截止时间")
    @NotNull(message = "截止时间不能为空")

    private LocalDateTime deadline;
    
    @Schema(description = "文件要求")
    private String fileRequirements;
    
    @Schema(description = "提交要求")
    private String submitRequirements;
    
    @Schema(description = "班级ID")
    @NotNull(message = "请选择班级")
    private Long classId;
} 